import type { MockMethod } from 'vite-plugin-mock'
const table:any = [
	{
		date: '2016-05-03',
		name: 'Tom',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-02',
		name: 'Tom',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-04',
		name: 'Tom2',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-01',
		name: 'Tom2',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-01',
		name: 'Tom2',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-04',
		name: 'Tom3',
		address: '新胜大街505号',
	  },
	  {
		date: '2016-05-01',
		name: 'Tom3',
		address: '新胜大街505号',
	  },
]
const tableColumn:any = [
	{
		name: '名称',
		value: 'name',
	},
	{
		name: '时间',
		value: 'date',
	},
	{
		name: '地址',
		value: 'address',
	},
]
export default [
    {
        url: '/mock/v1/table',
        method: 'post',
        response: () => {
            return {
                code: 200,
                message: 'ok',
                data: {
                    table,
                    tableColumn,
                },
            }
        },
    },
] as MockMethod[]
